home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-14 | 878 b | 21 lines | [TEXT/KAHL] |
- Part of the process of dimming an editable text item is to change
- it to a static text item. This can change the appearance of the
- text, if there is too much text for the width of the item. The
- reason is that the current editable item is drawn by TextEdit,
- using a destRect twice as wide as the viewRect, whereas static text
- items and inactive editable text items are drawn using TextBox,
- with destRect and viewRect having the same width. For the same
- reason, updating the window can change the appearance of an editable
- text item, if it was the active item when originally drawn but
- is no longer active. To see this, run the demo application, and
- add some extra text to the two left-hand editText items:
-
- Edit Textmmmm
- More Textmmmm
-
- If you leave the insertion point in the lower box, and then click
- the Erase & Update button, they will change to
-
- Edit
- More Textmmmm
-